<!DOCTYPE html>
<html lang="<?php echo $this->getLangueCode(); ?>">
    <head>
        <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <meta name="author" lang="fr" content="Pigxel Web" />	
        <title><?php echo $this->getTitleSeo(); ?></title>
        <meta name="description" content="<?php echo $this->getDescriptionSeo(); ?>" />
<?php if($this->getTarget()->type==='page'||$this->getTarget()->type==='publication'): ?>
        <link rel="canonical" href="<?php echo $this->getTarget()->getUrl(); ?>" />
<?php endif; ?>
        <!--endmetas-->
        <!-- favicon -->
<?php if(file_exists($this->getBaseDirectory().$this->getThemePath().'gfx/favicon.ico')): ?>
        <link rel="icon" type="image/x-icon" href="<?php echo $this->getBaseURL().$this->getThemePath().'gfx/favicon.ico'; ?>" />
<?php endif; ?>
        <!-- variables js -->
        <script>
            var baseUrl = "<?php echo $this->getBaseUrl(); ?>";
            var themePath = "<?php echo $this->getThemePath(); ?>";
        </script>
        <!-- end variables js -->
        
        <!-- links css -->
        <!-- skeleton -->
        <link href="<?php echo $this->getThemeURL().'/css/skeleton/skeleton.css'; ?>" type="text/css" rel="stylesheet" media="all"/>
        <link href="<?php echo $this->getThemeURL().'/css/skeleton/layout.css'; ?>" type="text/css" rel="stylesheet" media="all"/>
        <!-- endskeleton -->
        <link href="<?php echo $this->getThemeCssURL().'?v=0.1'; ?>" type="text/css" rel="stylesheet" media="all"/>
        <!--[if gte IE 9]>
          <style type="text/css">
            .gradient {
               filter: none;
            }
          </style>
        <![endif]-->
        <!--endlinks-->
    </head>
    <?php if(PWE::isMaintenanceMode()): ?>
    <body id="construction" itemscope itemtype="http://schema.org/WebPage">
    <?php else: ?>
    <body id="<?php echo $this->getIdPage(); ?>" itemscope itemtype="http://schema.org/WebPage">
        <!-- header -->
        <header itemscope itemtype="http://schema.org/WPHeader">
            <div id="top-line">
                <!-- meta schema.org -->
                <meta itemprop="headline" content="<?php echo PWE::getSiteName(); ?>" />
                
                <div itemprop="author" itemscope itemtype="http://schema.org/Organization">
                    <meta itemprop="name" content="Pigxel Web"/>
                    <div itemprop="address" itemscope itemtype="http://schema.org/PostalAddress">
                        <meta itemprop="streetAddress" content="2 rue du grand dérangement" />
                        <meta itemprop="postalCode" content="56800" />
                        <meta itemprop="addressLocality" content="Ploërmel, France" />
                    </div>
                    <meta itemprop="telephone" content="09 81 19 09 01" />
                    <meta itemprop="email" content="contact@pigxel-web.com" />
                </div>
                <div class="container">
                     <?php if(PWE::getNbrLanguesActives()>0): ?>
                    <div class="columns sixteen">
                        <ul class="liste-langue">
                            <li class="item <?php echo ($this->getLangueCode()==='fr')?'active':''; ?>"><a href="<?php echo $this->getTarget()->getUrl(); ?>"><span class="fr">fr</span></a></li>
                            <?php foreach(PWE::getLanguesActives() as $codeLangue): ?>
                            <li class="item <?php echo ($this->getLangueCode()===$codeLangue)?'active':''; ?>"><a href="<?php echo $this->getTarget()->getTranslatedUrl($codeLangue); ?>"><span class="<?php echo $codeLangue; ?>"><?php echo $codeLangue; ?></span></a></li>
                            <?php endforeach; ?>
                        </ul>
                    </div>
                    <?php endif; ?>
                </div>
            </div>
            <?php
        if($slider = $this->haveSlider()){
            include_once ('component/interface/banner-slider.php');
        }elseif($topImage = $this->haveMedia()){
            include_once ('component/interface/banner.php');
        }elseif($slider = PWE::getHomePage()->haveSlider()){
            include_once ('component/interface/banner-slider.php');
        }elseif(PWE::getHomePage()->haveMedia() && $topImage = PWE::getHomePage()->getMedia()){
            include_once ('component/interface/banner.php');
        }
        ?>
            <div id="header" class="container">
                <div id="logo" class="columns five">
                    <a href="<?php echo $this->getBaseURL(); ?>" title="<?php echo PWE::getSiteName(); ?>">
                        <?php $logo = $this->getLogo(); ?>
                        <?php if($logo !== null): ?>
                        <img src="<?php echo $logo->getThumbUrl('',220,220); ?>" alt="<?php echo $this->translate($logo,'title',$this->getLangueCode()); ?>" title="<?php echo $this->translate($logo,'legende',$this->getLangueCode()); ?>" />
                        <?php endif; ?>
                    </a>
                </div>
                <!-- navigation -->
                <div id="nav_top" class="columns eleven">
                    <nav><?php echo $this->getNavigation('top'); ?></nav>
                </div>
            </div>
        </header>
<?php endif; ?>